﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Invoicing.Resources
{
    public partial class ResourceAdd : Pubs.PageHandle
    {
        private DataTable _dataitems;

        public DataTable Dataitems
        {
            get { return _dataitems; }
            set { _dataitems = value; }
        }

      
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                /** get resource datas full in the dataitems **/
                ZY.BLL.Tab_Power dal = new ZY.BLL.Tab_Power();
                int datasum = dal.GetAllList().Tables[0].Rows.Count;
                if (datasum>0)
                {
                    Dataitems = dal.GetAllList().Tables[0];
                }
            }
        }
    }
}